<?php
	class CareerWidget extends CWidget
	{
		public function run(){
			$category = PostCategory::model()->with('posts')->findByAttributes(array('title'	=>	'careers'), array('order'	=>	'created_date DESC'));
			$posts = $category->posts;
			$data['posts'] = $posts;

			$this->render('careers', $data);
		}
	}
?>